#include <vector>
#include <algorithm>
using namespace std;

bool allones(vector<int> diff){
    for(int val:diff){
        if(val!=1){
            return false;
        }
    }
    return true;
}